//
//  NetworkTools.h
//  NetworkTools
//
//  Created by 方正刚 on 2017/8/25.
//  Copyright © 2017年 方正刚. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>


typedef enum : NSUInteger {
    GET,
    POST
} NetworkRequestType;


typedef void(^finished)(id _Nullable responseObject, NSError * _Nullable error);


@interface NetworkTools : AFHTTPSessionManager

+ (instancetype _Nullable )networkTools;

- (void)request:(NetworkRequestType)type urlString:(nonnull NSString *)urlString  parameters:(nullable id)parameters finish:(finished _Nullable )finish;


@end
